<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * 首页控制器
 * 
 * Enter description here ...
 * @author Administrator
 *
 */
class Member extends  CI_Model 
{
    public $username='';
    public $password='';
    public $confusion='';
    public $created_at = 0;
    public $register_ip='';
    public $last_login_at= 0;
    public $real_password='';
    public $istest=0;
    
    //public $_help_old_password='';
    
    public function __construct()
    {
        parent::__construct(); 
    }
    
    public function insert_auto_register()
    {
        $this->username = "test" . time() . '_' . mt_rand(10000,99999);
        $this->real_password = mt_rand(100000, 999999);
        $this->password = sha1($this->real_password);
        $this->created_at = time();
        $this->register_ip = $_SERVER['REMOTE_ADDR'];
        $this->istest =1;
        $this->db->insert('member', $this); 
        
    }
    
    
    
	
}

